package yuhao.enumdemo;

public enum Season {

    Spring("春") {
        @Override
        public void show() {
            System.out.println("游泳");

        }
    },
    Summer("夏") {
        @Override
        public void show() {
            System.out.println("跑步");

        }
    },
    Atumon() {
        @Override
        public void show() {
            System.out.println("火锅");

        }
    },
    Winter("冬") {
        @Override
        public void show() {
            System.out.println("冬泳");

        }
    };
    public String name;

    Season() {
    }

    Season(String name) {
        this.name = name;
    }

    public abstract void show();
}
